package com.zking.ssm.service;

import com.zking.ssm.model.News;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface INewsService {

    int grantCategory(News news);

    int revokeCategory(News news);

    int deleteByPrimaryKey(Integer newsId);

    @Transactional(readOnly = true)
    List<News> listNews(News news);
}